﻿@model BB.Apostas.Models.Reporte

@{
    ViewBag.Title = "EditReporte";
}

<h2>EditReporte</h2>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <div class="form_settings">

        @Html.HiddenFor(model => model.Id)

        <p>
            @Html.LabelFor(model => model.ReportType)
            @Html.DropDownListFor(model => model.ReportType, new SelectList(new List<Object>{ 
                       new { value = "Bug" , text = "Bug"  },
                       new { value = "Sugestao" , text = "Sugestao" }                     
                    }, "value", "text", 0))
        </p>
        <p>
            @Html.LabelFor(model => model.Message)
            @Html.EditorFor(model => model.Message)
            @Html.ValidationMessageFor(model => model.Message)
        </p>
        <p>
            @Html.LabelFor(model => model.State)
            @Html.DropDownListFor(model => model.State, new SelectList(new List<Object>{ 
                       new { value = "Initial" , text = "Initial"  },
                       new { value = "Complete" , text = "Complete" }                     
                    }, "value", "text", 0))
        </p>
        <p>
            @Html.LabelFor(model => model.CreatedDate)
            @Html.EditorFor(model => model.CreatedDate)
            @Html.ValidationMessageFor(model => model.CreatedDate)
        </p>
        <p style="padding-top: 15px">
            <label>
                &nbsp;</label>
            <input type="submit" class="submit" value="Editar" />
        </p>
    </div>
}

<div>
    @Html.ActionLink("Voltar", "IndexReporte")
</div>
